
/**
 * 将JSON类型转换成前端数据 
 * @param {json}  javaData  后端数据
 * @author TH_HAN 2021/12/15
 * @version 1.0.0
 */
function parse(javaData) {
    let webObj = {}
    javaData = javaData.replace(/{|}|''|\s/g,'')
    let javaDataArr = javaData.split(',')
    javaDataArr.forEach(item=>{
        let temp = item.split(':')
        let key = temp[0]
        let val = temp[1]
        webObj[key] = val
    })
    return webObj
}